/*
 * DistanceSensor.hpp
 *
 *  Created on: 10 dec. 2012
 *      Author: Admin
 */

#ifndef DISTANCESENSOR_HPP_
#define DISTANCESENSOR_HPP_

#include "Sensor.hpp"

/**
 * This sensor detects whether or not something is in front of it.
 */
class DistanceSensor : public Sensor
{
public:
	/**
	 * Poll the DistanceSensor
	 * @return true if a object is within range of the sensor, false otherwise
	 */
	virtual bool poll();

	/**
	 * Get the type of the sensor.
	 * @see SensorType.hpp
	 * @return sensor's type, as enumerated in SensorType.
	 */
	virtual SensorType getSensorType();
};

#endif /* DISTANCESENSOR_HPP_ */
